{% extends "User_panel/base_user_panel.html" %}
{% block panel-content %}
    {% if uncomment_goods %}
    <div id="center">
        <h3>&nbsp&nbsp&nbsp&nbsp;Not Commented Goods({{length}})</h3>
        <table id="bought_goods_list" cellspacing="20">
            <thead>
                <tr align="center">
                    <th>
                        Category
                    </th>
                    <th>
                        Sub Category
                    </th>
                    <th colspan="2">
                        Name
                    </th>
                    <th>
                        Price
                    </th>
                    <th>
                        Action
                    </th>
                </tr>
            </thead>
            <tbody>
            {%  for uncomment_good in uncomment_goods %}
                <tr align="center">
                    <td>
                        {{uncomment_good.idproduct.subcategory.category.name}}
                    </td>
                    <td>
                        {{uncomment_good.idproduct.subcategory.name}}
                    </td>
                    <td>
                        <img src="/{{ uncomment_good.idproduct.image }}" style="max-width:60px; max-height:60px;"/>
                    </td>
                    <td>
                        <a href="/products/{{ uncomment_good.idproduct.id}}" style="color:blue">{{uncomment_good.idproduct.name}}</a>
                    </td>
                    <td>
                        {{uncomment_good.idproduct.price}}
                    </td>
                    <td>
                        <a href="/products/comment/{{uncomment_good.id}}/" style="color:#7C470F">Comment now</a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
    {% else %}
        You didn't buy any goods!
    {% endif %}
{% endblock %}